const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // vue跨域 反向代理
  devServer: {
    proxy: {
      '/api': {
        target: 'http://60.205.2.196:7000', // 目标服务器地址  
        changeOrigin: true,
        withCredentials: true, // 转发Cookie
        cookieDomainRewrite: true, // 重写Cookie域名
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
